package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 综合评价标准扩展表
 *
 * @author code-generate
 * @date 2022-01-05
 */
@Data
@DbTable(tableName = "t_criterion_expand")
public class CriterionExpand extends BaseEntity {
        /**
     * 标准主键
     */
    @DbTableField(columnName = "c_criterion_id", dbType = DbTypeEnum.VARCHAR)
    public String criterionId ;

    /**
     * 标准级别
     */
    @DbTableField(columnName = "c_level", dbType = DbTypeEnum.INTEGER)
    public Integer level ;

    /**
     * 标准值
     */
    @DbTableField(columnName = "c_value", dbType = DbTypeEnum.FLOAT)
    public Float value ;

    /**
     * 运算符 取字典表数据
     */
    @DbTableField(columnName = "c_operator", dbType = DbTypeEnum.INTEGER)
    public Integer operator ;

    /**
     * 单位
     */
    @DbTableField(columnName = "c_unit", dbType = DbTypeEnum.VARCHAR)
    public String unit ;

    /**
     * 最后修改人id
     */
    @DbTableField(columnName = "c_db_update_id", dbType = DbTypeEnum.INTEGER)
    public Integer dbUpdateId ;

    /**
     * 最后修改时间
     */
    @DbTableField(columnName = "c_db_update_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime dbUpdateDate ;

    @ApiModelProperty(value = "运算符")
    private String operatorStr;
}
